package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.AlbumTrackListVo;
import com.atguigu.tingshu.vo.album.TrackInfoVo;
import com.atguigu.tingshu.vo.album.TrackListVo;
import com.atguigu.tingshu.vo.album.TrackStatMqVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface TrackInfoService extends IService<TrackInfo> {


    void saveTrackInfo(TrackInfoVo trackInfoVo,Long userId);

    IPage<TrackListVo> findUserTrackPage(Page<TrackListVo> page, TrackInfoQuery trackInfoQuery);

    void removeTrackInfo(Long trackId);


    void updateTrackInfo(Long trackId, TrackInfoVo trackInfoVo);

    IPage<AlbumTrackListVo> findAlbumTrackPage(Page<AlbumTrackListVo> page, Long albumId, Long userId);

    void updateTrackStat(TrackStatMqVo trackStatMqVo);

    List<Map<String, Object>> findUserTrackPaidList(Long trackId, Long userId);

    List<TrackInfo> findPaidTrackInfoList(Long trackId, Integer trackCount, Long userId);
}
